package com.uaombuy.gateway.schedule;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by yaosheng on 2021/3/26.
 */
@Component
public class ScheduleTask {

    @Scheduled(fixedRate = 5000)
    public void hello(){

        System.out.println ("Hello,world!");
    }
}
